package com.stu.pojo;

/**
 * @author zy
 * @date 2025/3/28
 */
public class User {
    private Integer id;
    private String name;
    private Integer age;

    public User() {
        System.out.println("User空参构造");
    }

    public User(Integer id, Integer age, String name) {
        this.id = id;
        this.age = age;
        this.name = name;
        System.out.println("User全参构造");
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
